package com.yf.exam.common.enums;

public enum AuditCodeEnum {
    WAIT_AUDIT(0,"待审核"),
    PASS_AUDIT(1,"通过"),
    NO_PASS_AUDIT(2,"不通过");

    public int code;
    public String desc;


    AuditCodeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public ResultCodeEnum getByCode(int codeVal) {
        for (ResultCodeEnum resultCodeEnum : ResultCodeEnum.values()) {
            if (resultCodeEnum.code == codeVal) {
                return resultCodeEnum;
            }
        }
        return null;
    }
}
